import request from "@/utils/request";

/**
 * 获取商品列表
 */
export const getGoodsList = (params)=>{
	return request({
		url:'/h5/shop/list',
		method: 'GET',
		params:params
	});
}

/**
 * 添加商品
 */
export const addGoods = (data) => {
	return request({
		url:'/h5/shop',
		method:'post',
		data:data
	})
}
/**
 * 更新商品
 */
export const updateGoods = (data) => {	
	return request({
		url: '/h5/shop',
		method: 'put',
		data:data,
	})
}
/**
 * 删除商品
 */
export const deleteGoods = (id) => {  
	return request({  
		url: '/h5/shop/' + id,  
		method: 'delete',  
	})  
}